package com.framework.service;

import com.baomidou.mybatisplus.service.IService;
import com.framework.entity.sys.SysActiveInfo;
import com.framework.page.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * @author wq
 */
public interface SysActiveInfoService extends IService<SysActiveInfo> {
    /**
     * 查询所有活动
     * @param params
     * @return
     */
    PageUtils queryActiveList(Map<String, Object> params);

    /**
     * 增加一条活动详情
     * @param sysActiveInfo
     */
    void insertActiveInfo(SysActiveInfo sysActiveInfo);

    /**
     * 根据Id查询活动详情
     * @param activeInfoId
     * @return
     */
    SysActiveInfo queryActiveInfoById(Long activeInfoId);

    /**
     * 修改活动详情
     * @param sysActiveInfo
     */
    void updateActiveById(SysActiveInfo sysActiveInfo);

    /**
     * 根据id删除具体活动
     * @param activeInfoId
     */
    void deleteActiveInfoById(Long activeInfoId);

    /**
     * 活动id
     * @param activeId
     * @return
     */
    List<SysActiveInfo> queryActiveInfoListByActiveId(Long activeId);

    /**
     * 进行中的活动详情
     * @param activeId
     * @return
     */
    List<SysActiveInfo> queryOnActiveInfoByActiveId(Long activeId);
}
